package com.huangkailong.designpattern.visitor;

import java.util.Random;
import lombok.Data;

/**
 * 员工.
 *
 * @author huangkl
 * @since 1.0.0
 */
@Data
public abstract class Employee {
    private String name;
    private Integer kpi;

    public Employee(String name) {
        this.name = name;
        this.kpi = new Random().nextInt(10);
    }

    /**
     * 接收访问者访问.
     *
     * @param visitor {@link Visitor}
     */
    public abstract void accept(Visitor visitor);
}
